package com.launch.carmanager.data.api;

import com.launch.carmanager.common.base.NullResponse;
import com.launch.carmanager.data.dto.AuthDto;

import java.util.Map;

import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by ganquan on 2019/3/28 15:18
 */
public interface AuthApi {
    @FormUrlEncoded
    @POST("api/app/login/loginUser.do")
    Observable<AuthDto.AuthResponse> login(@FieldMap Map<String, Object> map);

    @FormUrlEncoded
    @POST("api/app/login/loginUser.do")
    Observable<AuthDto.AuthSendCodeResponse> sendCode(@FieldMap  Map<String, Object> map);
}
